﻿namespace SmartCommunity.Models
{
    public class ModelPartial
    {
    }

    public partial class UserEntity
    {
        public bool IsSuperAdmin
        {
            get
            {
                return Username == "SuperAdmin" || Roles.Any(t => t.RoleCode == "SuperAdmin");
            }
        }
    }

}
